package smartlifev30.com.sdk.bean.request;

import smartlifev30.com.sdk.net.baiwei.protocol.Body;

import java.util.List;


/**
 * Created by tys on 2018/8/13.
 */

public class SetUserPermissionRequest extends Body {

    private User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public class User {
        private String phone_num;

        /**
         * 0:代表不打开权限，1：代表打开权限,当为0时，无device_list
         */
        private Integer permission;
        private List<DeviceId> device_list;

        public String getPhone_num() {
            return phone_num;
        }

        public void setPhone_num(String phone_num) {
            this.phone_num = phone_num;
        }

        public Integer getPermission() {
            return permission;
        }

        public void setPermission(Integer permission) {
            this.permission = permission;
        }

        public List<DeviceId> getDevice_list() {
            return device_list;
        }

        public void setDevice_list(List<DeviceId> device_list) {
            this.device_list = device_list;
        }
    }

    public class DeviceId {
        private Integer device_id;

        public DeviceId(Integer device_id) {
            this.device_id = device_id;
        }

        public Integer getDevice_id() {
            return device_id;
        }

        public void setDevice_id(Integer device_id) {
            this.device_id = device_id;
        }
    }
}
